<?php

defined('_JEXEC') or die('Restricted access'); ?>
<!-- http://www.Youjoomla.com  Youjoomla YJ Newsflash5 ver 2.0 for Joomla 1.5 starts here -->

<div id="YJ_NewsFlash5<?php echo $yj5_iscopy ?>">
	<!--nav links -->
    <div class="yjnf5_nav<?php echo $yj5_iscopy ?>">
		<div class="yjmf5_nav_b">
			<a href="#" id="up<?php echo $yj5_iscopy ?>">up</a>
			<a href="#" id="down<?php echo $yj5_iscopy ?>">down</a> 
		</div>
    </div>
	<!-- module content -->
	<div id="yjnf5_co<?php echo $yj5_iscopy ?>" style="height:<?php echo $yj5_height ?>;">
		<div id="yjnf5_ci<?php echo $yj5_iscopy ?>">
			<marquee width="245px" height="130px" onmouseout="this.start();" onmouseover="this.stop();" scrollamount="1" scrolldelay="50" direction="up" behavior="scroll">
			<ul>
				<?php $i = 1;
				$numberof = count($yjnf5_items);
				foreach ($yjnf5_items as $item5_get): // this is the loop for each module news item 
				if($i == $numberof){
					$last = ' last';
				}else{
					$last = '';
				}
				$i++;?>
				<li>
				<div class="yjnewsflash5">
					<div class="yjnewsflash5_in yjnfitem<?php echo $item5_get['item_id']// news item id. We add this to div class so it can be used for individual item styling?><?php echo $last ?>">
						<?php if ($showtitle == 1 ): // if news item title is enabeled ?>
						<a class="itemtitle" href="<?php echo $item5_get['item_link'] // news item url ?>">
							<?php echo $item5_get['item_title']// news item title ?>
						</a>
						<?php endif; ?>
						
					</div>
				</div>
				</li>
				<?php endforeach;?>
				</ul>
			</marquee>
		</div> 
	</div> 
</div> 	